class Master < ActiveRecord::Base
  
	belongs_to :toast

	def validate
	  if toast.masters.size >= toast.capacity
		  errors.add_to_base("The Toast seassion is fully booked")

	  end

	end

end
